﻿@{
    ViewBag.Title = "EditDefinedCode";
    Layout = null;
}
@model UcAsp.Net.Model.DefinedCode

<div>
    <input name="ID" type="hidden" name="ID" value="@Model.ID" />
    <p>
        <label>
            字典类型</label>
        <input class="text-input large-input" type="text" name="DefinedCodeType" value="@Model.DefinedCodeType"  />
    </p>
    <p>
        <label>
            字典数字</label>
        <input class="text-input large-input" type="text" name="DefinedNumber" value="@Model.DefinedNumber" />
    </p>
    <p>
        <label>
            字典名称</label>
        <input class="text-input large-input" type="text" name="DefinedName" value="@Model.DefinedName"  />
    </p>
    <p>
        <label>
            字典排序</label>
        <input class="text-input large-input" type="text" name="DisplayRank" value="@Model.DisplayRank"  />
    </p>
    <p>
        <label>
            字典描述</label>
        <input class="text-input large-input" type="text" name="DefinedDesc" value="@Model.DefinedDesc"  />
    </p>
    <p>
        <span class="btn save" >保存</span>
    </p>
 </div>
 <script>
     $(document).ready(function () {
         $(".save").click(function () {
             $.post("/Admin/SaveDefinedCode", { ID: $("input[name='ID']").val(), DefinedCodeType: $("input[name='DefinedCodeType']").val(), DefinedNumber: $("input[name='DefinedNumber']").val(), DefinedName: $("input[name='DefinedName']").val(), DisplayRank: $("input[name='DisplayRank']").val(), DefinedDesc: $("input[name='DefinedDesc']").val() }, function (dataResult) {
                 location.reload();
             });
         })
     })
 </script>